package com.song.mscloud.controller;

import com.song.mscloud.api.RoomFeign;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TonySong
 * @date 2024/5/7 0007
 * @time 15:38
 */

@RestController
public class RoomFeignController {

    @Resource
    private RoomFeign roomFeign;

    @GetMapping("/room/list")
    public String list() {
       return roomFeign.getRooms();
    }
}
